﻿#include "map_msg.h"
#include "../share/MessageDef.h"


CMapPlayerMsgFactory::CMapPlayerMsgFactory()
{
	msg_process_.clear();
}

MapPlayerMsgProcess CMapPlayerMsgFactory::GetMsgProcess(int msg_id)
{
	TMsgProcess::iterator it = msg_process_.find(msg_id);
	if (it == msg_process_.end())
	{
		TMsgProcess::iterator it = msg_process_.find(lua_general_message_req);
		if (it != msg_process_.end())
		{
			return it->second;
		}
		return NULL;
	}

	return it->second;
}


